<div :class="{ 'grid': true, 'show-paging-bar': isEnablePagingBar, 'hidden-paging-bar': !isEnablePagingBar }">
    <i-form>
        <el-table v-if="isDisplay === true"
            :default-sort="{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"  
            @sort-change="onSortChange($event)"  
            :border="isDragendCol"
            :class="true && items.length > 0 ? 'total-row-table' : ''"
            :show-summary="true && items.length > 0"
            :summary-method="getSummaries"
            :highlight-current-row ="isSingleSelect"
            :row-class-name="getRowClassName.bind(_self)"
            :cell-class-name="getCellClassName.bind(_self)"
            size="mini"
            stripe
            :height="tableHeight"
            @row-click="rowClick($event)"  
            @select-all="selectAll($event)"  
            @select="select.apply(_self, arguments)"  
            @row-class-name="onRowClassName($event)"  
            @row-dblclick="rowDBLClick($event)"  
            ref="multipleTable" :data="items" :show-header="!isHideHeader"
        >
            <template slot="empty">
                {{$t('entities.projectstats.projecttaskstatuscount_grid.nodata')}} 
                <span class="quick-toolbar">
                </span>
            </template>
            <template v-if="!isSingleSelect">
                <el-table-column align="center" type="selection" :width="checkboxColWidth"></el-table-column>
            </template>
            <template v-if="getColumnState('name')">
                <el-table-column show-overflow-tooltip :prop="'name'" :label="$t('entities.projectstats.projecttaskstatuscount_grid.columns.name')" :min-width="100"  :align="'left'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.projectstats.projecttaskstatuscount_grid.columns.name')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.name}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('doingtaskcnt')">
                <el-table-column show-overflow-tooltip :prop="'doingtaskcnt'" :label="$t('entities.projectstats.projecttaskstatuscount_grid.columns.doingtaskcnt')" :width="100"  :align="'left'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.projectstats.projecttaskstatuscount_grid.columns.doingtaskcnt')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.doingtaskcnt}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('waittaskcnt')">
                <el-table-column show-overflow-tooltip :prop="'waittaskcnt'" :label="$t('entities.projectstats.projecttaskstatuscount_grid.columns.waittaskcnt')" :width="100"  :align="'left'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.projectstats.projecttaskstatuscount_grid.columns.waittaskcnt')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.waittaskcnt}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('pausetaskcnt')">
                <el-table-column show-overflow-tooltip :prop="'pausetaskcnt'" :label="$t('entities.projectstats.projecttaskstatuscount_grid.columns.pausetaskcnt')" :width="100"  :align="'left'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.projectstats.projecttaskstatuscount_grid.columns.pausetaskcnt')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.pausetaskcnt}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('closedtaskcnt')">
                <el-table-column show-overflow-tooltip :prop="'closedtaskcnt'" :label="$t('entities.projectstats.projecttaskstatuscount_grid.columns.closedtaskcnt')" :width="100"  :align="'left'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.projectstats.projecttaskstatuscount_grid.columns.closedtaskcnt')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.closedtaskcnt}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('canceltaskcnt')">
                <el-table-column show-overflow-tooltip :prop="'canceltaskcnt'" :label="$t('entities.projectstats.projecttaskstatuscount_grid.columns.canceltaskcnt')" :width="100"  :align="'left'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.projectstats.projecttaskstatuscount_grid.columns.canceltaskcnt')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.canceltaskcnt}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('donetaskcnt')">
                <el-table-column show-overflow-tooltip :prop="'donetaskcnt'" :label="$t('entities.projectstats.projecttaskstatuscount_grid.columns.donetaskcnt')" :width="100"  :align="'left'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.projectstats.projecttaskstatuscount_grid.columns.donetaskcnt')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.donetaskcnt}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('taskcnt')">
                <el-table-column show-overflow-tooltip :prop="'taskcnt'" :label="$t('entities.projectstats.projecttaskstatuscount_grid.columns.taskcnt')" :width="100"  :align="'left'">
                    <template v-slot:header="{column}">
                       <span class="column-header ">
                        {{$t('entities.projectstats.projecttaskstatuscount_grid.columns.taskcnt')}}
                       </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <span>{{row.taskcnt}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="adaptiveState">
                <el-table-column></el-table-column>
            </template>
        </el-table>
    </i-form>
</div>